<?php /* Smarty version 2.6.22, created on 2009-05-25 16:18:41
         compiled from bsm/select.sm */ ?>
<select <?php if ($this->_tpl_vars['name']): ?>name="<?php echo $this->_tpl_vars['name']; ?>
"<?php endif; ?> <?php if ($this->_tpl_vars['id']): ?>id="<?php echo $this->_tpl_vars['id']; ?>
"<?php endif; ?> <?php if ($this->_tpl_vars['class']): ?>class="<?php echo $this->_tpl_vars['class']; ?>
"<?php endif; ?>
<?php if ($this->_tpl_vars['forAdmin'] && $this->_tpl_vars['id_']): ?> onchange="ajaz('page=<?php if ($this->_tpl_vars['combo']): ?>alertCombo<?php else: ?>alertField<?php endif; ?>&field=<?php echo $this->_tpl_vars['id_']; ?>
&newType='+this.value+'&table=<?php echo $_POST['table']; ?>
','<?php echo $this->_tpl_vars['lg']['A_saveChanges']; ?>
?')"<?php endif; ?>
<?php if ($this->_tpl_vars['parentChild']): ?> onchange = "parentChild('<?php echo $this->_tpl_vars['parentChild']; ?>
','<?php echo $_POST['table']; ?>
',this.id)"<?php endif; ?>
>
 <option>&nbsp;</option>
  <?php $_from = $this->_tpl_vars['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
    <option
      <?php if ($this->_tpl_vars['selected']): ?>
        <?php if ($this->_tpl_vars['selected'] == $this->_tpl_vars['item']['id'] || $this->_tpl_vars['selected'] == $this->_tpl_vars['item'][$this->_tpl_vars['field']] || $this->_tpl_vars['selected'] == $this->_tpl_vars['item']['alias']): ?>selected="selected" <?php endif; ?>
      <?php endif; ?>
<?php if ($this->_tpl_vars['alertCheckValue']): ?>
  <?php if ($this->_tpl_vars['field']): ?>
    value="<?php echo $this->_tpl_vars['item'][$this->_tpl_vars['field']]; ?>
"
  <?php else: ?>
    value="<?php echo $this->_tpl_vars['item']['alias']; ?>
"
  <?php endif; ?>
<?php else: ?>
  value="<?php echo $this->_tpl_vars['item']['id']; ?>
"
<?php endif; ?>>

<?php if ($this->_tpl_vars['field']): ?><?php echo $this->_tpl_vars['item'][$this->_tpl_vars['field']]; ?>
<?php else: ?><?php echo $this->_tpl_vars['item']['alias']; ?>
<?php endif; ?></option>
  <?php endforeach; endif; unset($_from); ?>
  <?php if ($this->_tpl_vars['forAdmin']): ?>
    <option value=0><?php echo $this->_tpl_vars['lg']['MSG_delete']; ?>
</option>
  <?php endif; ?>

</select>